//
//  ViewController.m
//  28-Homework
//
//  Created by dllo on 16/8/22.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *logoLayoutCenterY;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *userWidthZero;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *userWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textFieldLayoutWidthSmall;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textFieldLayoutWidthBig;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *loginLayoutWidthSmall;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *loginLayoutWidthBig;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewLayoutSmallWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewLayoutBigWidth;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    self.logoLayoutCenterY.constant = -150;
    self.userWidth.priority = 751;
    self.userWidthZero.priority = 750;
    self.textFieldLayoutWidthBig.priority = 751;
    self.textFieldLayoutWidthSmall.priority = 750;
    self.loginLayoutWidthBig.priority = 751;
    self.loginLayoutWidthSmall.priority = 750;
    self.viewLayoutSmallWidth.priority = 750;
    self.viewLayoutBigWidth.priority = 751;
    [UIView animateWithDuration:3 animations:^{
        [self.view layoutIfNeeded];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
